package com.yjd.comm.sms.service;

import java.util.List;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.sms.model.MarketSmsModel;

/**
 * <b>description</b>：身份认证业务接口<br>
 * <b>time</b>：2014-12-01 15:08:26 <br>
 * <b>author</b>：  renbangjie_vip@163.com
 */
public interface IMarketSmsService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public MarketSmsModel insert(MarketSmsModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(MarketSmsModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long id) throws Exception;
	
	/**
	 * 发送短信
	* @param mobiles 手机号列表
	* @param title 标题
	* @param content 内容
	* @param stime 发送日期
	* @return boolean
	 * @throws Exception 
	 */
	public boolean batchSendMessage(List<String> mobiles, String title, String content, String stime, IWoDongService service) throws Exception;

}
